#include <stdio.h>
#include<math.h>
int main()
{
	float arr[12] = { 0 };
	float all = 0;
	int i = 0, j = 0, percent = 0;
	for (i = 0; i < 12; i++)
	{
		scanf("%f", &arr[i]);
		all+=arr[i];
	}
	for (i = 0; i < 12; i++)
	{
		percent = round((arr[i] / all) * 100);
		printf("%d(%d%c) ", i+1, percent,'%');
		for (j = 0;j < percent;j++)
		{
			printf("#");
		}
		printf("\n");
	}
	return 0;
}
